/// WriteoffTeamPageRequestDto
class WriteoffTeamPageRequestDto {
  /// 当前页 默认 1
  final int? pageNum;
  /// 每页记录数 默认 10
  final int? pageSize;
  /// 团队名称
  final String? teamName;
  /// 团队状态：1：启用，0：禁用
  final int? status;

  WriteoffTeamPageRequestDto({
    this.pageNum,
    this.pageSize,
    this.teamName,
    this.status,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (pageNum != null) data['pageNum'] = pageNum;
    if (pageSize != null) data['pageSize'] = pageSize;
    if (teamName != null) data['teamName'] = teamName;
    if (status != null) data['status'] = status;
    return data;
  }

  factory WriteoffTeamPageRequestDto.fromJson(Map<String, dynamic> json) {
    return WriteoffTeamPageRequestDto(
      pageNum: json['pageNum'],
      pageSize: json['pageSize'],
      teamName: json['teamName'],
      status: json['status'],
    );
  }
}